Optimal. Leaf size=219 \[ -\frac{c \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} \sqrt [4]{b}}+\frac{c \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} \sqrt [4]{b}}-\frac{c \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} \sqrt [4]{b}}+\frac{c \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right )}{2 \sqrt{2} a^{3/4} \sqrt [4]{b}}+\frac{d \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} \sqrt{b}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.170693, antiderivative size = 219, normalized size of antiderivative = 1., number of steps used = 13, number of rules used = 9, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.6, Rules used = {1876, 211, 1165, 628, 1162, 617, 204, 275, 205} \[ -\frac{c \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} \sqrt [4]{b}}+\frac{c \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} \sqrt [4]{b}}-\frac{c \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} \sqrt [4]{b}}+\frac{c \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right )}{2 \sqrt{2} a^{3/4} \sqrt [4]{b}}+\frac{d \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} \sqrt{b}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1876
Rule 211
Rule 1165
Rule 628
Rule 1162
Rule 617
Rule 204
Rule 275
Rule 205
Rubi steps
\begin{align*} \int \frac{c+d x}{a+b x^4} \, dx &=\int \left (\frac{c}{a+b x^4}+\frac{d x}{a+b x^4}\right ) \, dx\\ &=c \int \frac{1}{a+b x^4} \, dx+d \int \frac{x}{a+b x^4} \, dx\\ &=\frac{c \int \frac{\sqrt{a}-\sqrt{b} x^2}{a+b x^4} \, dx}{2 \sqrt{a}}+\frac{c \int \frac{\sqrt{a}+\sqrt{b} x^2}{a+b x^4} \, dx}{2 \sqrt{a}}+\frac{1}{2} d \operatorname{Subst}\left (\int \frac{1}{a+b x^2} \, dx,x,x^2\right )\\ &=\frac{d \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} \sqrt{b}}+\frac{c \int \frac{1}{\frac{\sqrt{a}}{\sqrt{b}}-\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}+x^2} \, dx}{4 \sqrt{a} \sqrt{b}}+\frac{c \int \frac{1}{\frac{\sqrt{a}}{\sqrt{b}}+\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}+x^2} \, dx}{4 \sqrt{a} \sqrt{b}}-\frac{c \int \frac{\frac{\sqrt{2} \sqrt [4]{a}}{\sqrt [4]{b}}+2 x}{-\frac{\sqrt{a}}{\sqrt{b}}-\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}-x^2} \, dx}{4 \sqrt{2} a^{3/4} \sqrt [4]{b}}-\frac{c \int \frac{\frac{\sqrt{2} \sqrt [4]{a}}{\sqrt [4]{b}}-2 x}{-\frac{\sqrt{a}}{\sqrt{b}}+\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}-x^2} \, dx}{4 \sqrt{2} a^{3/4} \sqrt [4]{b}}\\ &=\frac{d \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} \sqrt{b}}-\frac{c \log \left (\sqrt{a}-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} \sqrt [4]{b}}+\frac{c \log \left (\sqrt{a}+\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} \sqrt [4]{b}}+\frac{c \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} \sqrt [4]{b}}-\frac{c \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1+\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} \sqrt [4]{b}}\\ &=\frac{d \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} \sqrt{b}}-\frac{c \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} \sqrt [4]{b}}+\frac{c \tan ^{-1}\left (1+\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} \sqrt [4]{b}}-\frac{c \log \left (\sqrt{a}-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} \sqrt [4]{b}}+\frac{c \log \left (\sqrt{a}+\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} \sqrt [4]{b}}\\ \end{align*}
Mathematica [A] time = 0.0819112, size = 184, normalized size = 0.84 \[ \frac{-2 \left (2 \sqrt [4]{a} d+\sqrt{2} \sqrt [4]{b} c\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )+2 \left (\sqrt{2} \sqrt [4]{b} c-2 \sqrt [4]{a} d\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right )+\sqrt{2} \sqrt [4]{b} c \left (\log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )-\log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )\right )}{8 a^{3/4} \sqrt{b}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 151, normalized size = 0.7 \begin{align*}{\frac{c\sqrt{2}}{8\,a}\sqrt [4]{{\frac{a}{b}}}\ln \left ({ \left ({x}^{2}+\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ({x}^{2}-\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ) }+{\frac{c\sqrt{2}}{4\,a}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ) }+{\frac{c\sqrt{2}}{4\,a}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ) }+{\frac{d}{2}\arctan \left ({x}^{2}\sqrt{{\frac{b}{a}}} \right ){\frac{1}{\sqrt{ab}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.758778, size = 124, normalized size = 0.57 \begin{align*} \operatorname{RootSum}{\left (256 t^{4} a^{3} b^{2} + 32 t^{2} a^{2} b d^{2} - 16 t a b c^{2} d + a d^{4} + b c^{4}, \left ( t \mapsto t \log{\left (x + \frac{- 128 t^{3} a^{3} b d^{2} - 16 t^{2} a^{2} b c^{2} d - 8 t a^{2} d^{4} - 4 t a b c^{4} + 5 a c^{2} d^{3}}{4 a c d^{4} - b c^{5}} \right )} \right )\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.08081, size = 288, normalized size = 1.32 \begin{align*} \frac{\sqrt{2} \left (a b^{3}\right )^{\frac{1}{4}} c \log \left (x^{2} + \sqrt{2} x \left (\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{\frac{a}{b}}\right )}{8 \, a b} - \frac{\sqrt{2} \left (a b^{3}\right )^{\frac{1}{4}} c \log \left (x^{2} - \sqrt{2} x \left (\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{\frac{a}{b}}\right )}{8 \, a b} - \frac{\sqrt{2}{\left (\sqrt{2} \sqrt{a b} b d - \left (a b^{3}\right )^{\frac{1}{4}} b c\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x + \sqrt{2} \left (\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{4 \, a b^{2}} - \frac{\sqrt{2}{\left (\sqrt{2} \sqrt{a b} b d - \left (a b^{3}\right )^{\frac{1}{4}} b c\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x - \sqrt{2} \left (\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{4 \, a b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]